package cn.javasea.websocket.entity;

import lombok.Data;

import javax.websocket.Session;
import java.io.Serializable;

/**
 * @description: socket用户信息
 * @date: 2020/3/18 17:15
 * @version: 1.0
 **/
@Data
public class SessionUser extends SocketUser implements Serializable {


    private static final long serialVersionUID = 1L;

    /** 此用户的session */
    private Session session;

    public SessionUser() {
    }

    public SessionUser(Session session, String userId, String userName, String tenantId) {
        super(userId, userName, tenantId);
        this.session = session;
    }

}
